'''
Created on Apr 15, 2012

@author: Vu Dao
'''

# xpath of new category
def xpathNewCategory():
    return "//a[text()='New category']"

# xpath of new category text box
def xpathTxtNewCategory():
    return "//input[@name='name']"

# xpath of combobox new category
def xpathComboNewCategory():
    return "//select[@name='parent_direction_ID']"

# xpath of submit button
def xpathSubmitNewCategoryButton():
    return "//input[@name='submit_direction']"

# xpath of search category
def xpathTxtSearchCategory():
    return "//input[@value='Filter...']"

# xpath of category name
def xpathCategoryName(categoryName):
    return "//span[text()='"+categoryName+"']"

#xpath of delete button
def xpathDeleteCategory(categoryName):
    return ".//span[text()='"+categoryName+"']/../../../td/img[@title='Delete']"